Auto merge of #3145 - alexcrichton:rustdoc-cross-test, r=brson
authorbors <bors@rust-lang.org>
Thu, 6 Oct 2016 02:26:10 +0000 (19:26 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Oct 2016 02:26:10 +0000 (19:26 -0700)
Test requested --target from source of truth

We skip doc tests for any cross compiles (as they don't work) but to detect a
cross compile we checked `--target` but forgot to check other locations like
`CARGO_BUILD_TARGET` or `[build.target]`. This alters the check to ensure that
it verifies from the source of truth whether a cross compilation happened or
not.

Closes #3143


Trivial merge